<template>
  <div>
    <el-descriptions title="厂商名片" direction="vertical" :column="4" border>
      <el-descriptions-item label="厂商编号">{{ props.factory.factoryId }}</el-descriptions-item>
      <el-descriptions-item label="厂商名">{{ props.factory.factoryName }}</el-descriptions-item>
      <el-descriptions-item label="负责人姓名" :span="2"><el-tag size="large">{{ props.factory.personName }}</el-tag></el-descriptions-item>
      <el-descriptions-item label="电话">
        {{ props.factory.tel }}
      </el-descriptions-item>
      <el-descriptions-item label="联系地址">{{ props.factory.address }}</el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script setup>
import {defineProps} from "vue"

const props = defineProps({
  factory: {
    type: Object,
    required: true
  }
})
</script>

<style lang="less">

</style>
